<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

#general routes
$route['default_controller'] 					= 	"client/home";
$route['404_override'] 							= 	'';


#client routes
$route['home']									=	"client/home";
$route['apply-online']							=	"client/apply/step_1";
$route['step_1']								=	"client/apply/step_1";
$route['step_2']								=	"client/apply/step_2";
$route['step_2/(:any)']							=	"client/apply/step_2/$1";
$route['step_3']								=	"client/apply/step_3";
$route['step_3/(:any)']							=	"client/apply/step_3/$1";
$route['apply']									=	"client/apply/step_1";

#menutab
$route['requirements']							=	"client/menutab/requirements";
$route['check-requirement']						=	"client/menutab/check_requirements";
$route['requirements/(:any)']					=	"client/menutab/check_requirements_details/$1";
$route['embassy']								=	"client/embassy/index";
$route['embassy/(:any)']						= 	"client/embassy/detail/$1";
$route['about-us']								=	"client/menutab/about_us/";
$route['how-to-apply']							=	"client/menutab/how_to_apply";
$route['fees']									=	"client/menutab/fees";
$route['menutab/standard_fee']					=	"client/menutab/standard_fee/$1";
$route['menutab/express_fee']					=	"client/menutab/express_fee/$1";
$route['menutab/stamping_fee']					=	"client/menutab/stamping_fee/$1";
$route['application-forms']						=	"client/menutab/application_form";

#apply form ajax
$route['apply/change_type']						=	"client/apply/change_type/$1";
$route['apply/change_purpose']					=	"client/apply/change_purpose/$1";
$route['apply/change_number']					=	"client/apply/change_number/$1";
$route['apply/get_price_ajax']					=	"client/apply/get_price_ajax/$1";
$route['apply/get_number_visa']					=	"client/apply/get_number_visa/$1";
$route['apply/change_application_form']			=	"client/apply/change_application_form/$1";
$route['apply/payment']							=	"client/apply/payment/";
$route['apply/payment/(:any)']					=	"client/apply/payment/$1";
$route['return_onepay'] 						= 	"client/apply/return_onepay";


$route['apply/validate_date_exit_ceiling']		=	"client/apply/validate_date_exit_ceiling/$1";
$route['apply/validate_date_exit_floor']		=	"client/apply/validate_date_exit_floor/$1";
$route['apply/change_date_exit_ceiling']		=	"client/apply/change_date_exit_ceiling/$1";
$route['apply/change_date_exit_floor']			=	"client/apply/change_date_exit_floor/$1";
$route['apply/change_contact_info']				=	"client/apply/change_contact_info/$1";
$route['apply/change_apply_info']				=	"client/apply/change_apply_info/$1";


$route['faqs']									=	"client/faqs";
$route['check-status']							=	"client/checkstatus";
$route['check-status']							=	"client/checkstatus";
$route['checkstatus/(:any)']					=	"client/checkstatus/$1";

$route['questions-and-answers']					=	"client/questions/index";
$route['questions-and-answers/(:any)']			=	"client/questions/index/$1";
$route['answer/(:any)']							=	"client/questions/detail/$1";
$route['detail/(:any)']							=	"client/questions/detail/$1";
$route['search']								=	"client/questions/search";
$route['categories/(:any)']						=	"client/questions/category/$1";
$route['categories/(:any)/(:num)']				=	"client/questions/category/$1/$2";
$route['submit-question']						=	"client/questions/index";
$route['submit-question/(:any)']				=	"client/questions/index/$1";
$route['page/(:any)']							=	"client/pages/detail/$1";



#admin routes
$route['admin']									=	"admin/welcome_admin";


/* End of file routes.php */
/* Location: ./application/config/routes.php */